package MineGod;

import java.io.IOException;

import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;
import org.newdawn.slick.util.ResourceLoader;

public class GUIButtonGoToHighScores extends GUIButton{

	public static Texture texture;
	
	public GUIButtonGoToHighScores(){
		x = 340;
		y = 450;
		width = 256;
		height = 64;
		active = true;
		hidden = false;
	}
	
	public static void loadTexture(){
		try {
			texture = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("res/guiHighScoresButton.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	@Override
	public void mouseOn(double mouseX, double mouseY) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseClickedOn(MineGod game) {
		// TODO Auto-generated method stub
		MineGod.gameFinished = false;
		MineGod.screenIndex = 3;
		MineGod.menuFlag = 0;
		MineGod.gameFlag = 0;
		MineGod.nameFlag = 0;
	}

	@Override
	public Texture getTexture() {
		// TODO Auto-generated method stub
		return texture;
	}

	
	
	
	
}
